package org.liuqm.factory.abstractfactory;

import org.liuqm.factory.abstractfactory.sevice.UserDaoFactory;
import org.liuqm.factory.abstractfactory.sevice.UserDaoImplFactory;
import org.liuqm.factory.abstractfactory.sevice.UserDaoImplv2Factory;
import org.liuqm.factory.abstractfactory.sevice.impl.UserServiceImpl;

public class AbstractFactoryTest {
    public static void main(String[] args) {
//        AbstractFactory abstractFactory = new BlackWhiteFactory();
//        abstractFactory.createPrint().print();

        UserServiceImpl userService = new UserServiceImpl();
        userService.setUserDaoFactory(new UserDaoImplv2Factory());

        userService.insertUser("","");
    }

}
